<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a class="tip-bottom" href="{:U('Index/index')}" data-original-title="首页"><i class="icon-home"></i> 首页</a>
			<a class="tip-bottom" href="{:U('Base/area')}" data-original-title="">{$meta_title_c}</a>
			<a class="current" href="{$post_url}">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-title">
						<span class="icon"> <i class="icon-align-justify"></i></span>
						<h5>{$meta_title}</h5>
					</div>
					<div class="widget-content nopadding">
						<form class="form-horizontal" method="post" action="">

							<div class="search-form row-fluid" style="margin-top:15px; ">
								<a class="pull-left" style="font-size:14px;margin:4px 21px 0 120px;">区域选择:</a>
								<span class="control-group pull-left"  style=" width:150px;">
									<notempty name='list'>
									<select class="select span 3" id="j-select-city" name="province_id" disabled="disabled">
										<option value="{$list.province_id}" >{$list.province_id|getProvinceName}</option>
									</select>
									<else/>
									<select class="select span 3" id="j-select-city" name="province_id" readonly="readonly" >
										<option value="{$province}" >{$province|getProvinceName}</option>
									</select>
									</notempty>
								</span>
							</div>
							<div class="control-group">
								<label class="control-label">城市名称:</label>
								<div class="controls">
									<input type="text" maxlength="20" placeholder="城市名称1-20个字符" class="ui-wizard-content span3" name="city_name" value="{$list.city_name|htmlspecialchars}" >
								</div>
							</div>
							<div class="form-actions">
								<button class="btn btn-success" type="submit">提交</button>
								<button type="button" class="btn btn-danger" onclick="javascript:history.back(-1);return false;">返 回</button>
							</div>
							<input type="hidden" name="city_id" value="{$list.city_id}"/>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	//初始化登录用户名输入焦点
	tke_form_focus();
	$("form").submit(function(){
		//锁定登录按钮
		$('button').attr('disabled',true);
		var self = $(this);
		$.post("{$post_url}", self.serialize(), call_back, "json");
		return false;
		
		/**
		* @todo 接收登录返回值
		* @author PHP@妖孽 <dino_ma@163.com>
		*/
		function call_back(data){
			if(data.status==1){
				tke_alert(data.info,'alert-success');
				setTimeout(function(){
				if (data.url) {
						location.href=data.url;
					}else{
						location.reload();
					}
				},1500);
			} else {
				$('button').attr('disabled',false);
				tke_alert(data.info,'alert-error');
			}
		}
	});
	//导航高亮
	highlight_subnav("{:U('Base/area')}");
});
</script>
</block>